﻿using System;
using System.ServiceModel;


namespace AccessControl.FingerPrintEngine
{
    [ServiceContract(
        Name = "FingerPrintEngineServer",
        SessionMode = SessionMode.Required)]
    public interface IFingerPrintEngine
    {
        [OperationContract]
        bool EnrollFingerPrint(String pkPerson,byte fingerIndex,Byte[][] rawImage, out String errorMessage);

        [OperationContract(Name="IdentifyPersonByEvent")]
        String IdentifyPerson(Byte[] rawImage, Int32 pkEvent,out String errorMessage);

        [OperationContract]
        String IdentifyPerson(Byte[] rawImage, out String errorMessage);

        [OperationContract]
        bool Verify(String pkPerson, Byte[] rawImage, out String errorMessage);

        [OperationContract]
        bool Match(Byte[] rawImage1, Byte[] rawImage2, out String errorMessage);

        [OperationContract]
        void UpdatePesonEvent();

    }
}
